import Axios from '@/utils/request'
import {getResult} from '@/api/util'
const SHARE = ''
/**
 * 获取置顶列表
 * @author 梁国玺
 * @Date 2023-09-20 14:10:20
 */

// 查询关注内容列表
export const focusContentListApi = (params) => {
    return Axios.get(`${SHARE}/yaseeContent/selectTopContent`, {params: params}).then(res => getResult(res))
}

// 动态列表
export const queryDynamicListApi = (params) => {
    return Axios.get(`${SHARE}/cms/yaseeContent/queryDynamicList`, {params: params}).then(res => getResult(res))
}

// 动态详情
export const queryDynamicApi = (params) => {
    return Axios.get(`${SHARE}/cms/yaseeContent/queryDynamic`, {params: params, headers: {
        'Authorization': params.token
      }}).then(res => getResult(res))
}

// 查询评论列表
export const commentListApi = (params) => {
    return Axios.get(`${SHARE}/cms/yaseeContentComment/commentList`, {params: params}).then(res => getResult(res))
}

